const Service = require('egg').Service;

class UserService extends Service {
  getPicture() {
    return new Promise(resolve => {
      setTimeout(() => {
        resolve(true);
      }, 3000);
    });
  }
  async queryUser() {
    const user = { name: 'glk', age: 18 };
    await this.getPicture();
    return user;
  }
}

module.exports = UserService;
